package kr.hkit.powerjava.chther06;

public class 반복문 {
	public static void main(String[] args) {
//		System.out.printf("%2d * %2d = %2d \n", 2, 1, 2 * 1);
//		System.out.printf("%2d * %2d = %2d \n", 2, 2, 2 * 2);
//		System.out.printf("%2d * %2d = %2d \n", 2, 3, 2 * 3);
//		System.out.printf("%2d * %2d = %2d \n", 2, 4, 2 * 4);
//		System.out.printf("%2d * %2d = %2d \n", 2, 5, 2 * 5);
//		System.out.printf("%2d * %2d = %2d \n", 2, 6, 2 * 6);
//		System.out.printf("%2d * %2d = %2d \n", 2, 7, 2 * 7);
//		System.out.printf("%2d * %2d = %2d \n", 2, 8, 2 * 8);
//		System.out.printf("%2d * %2d = %2d \n", 2, 9, 2 * 9);

//		calgugudan();
		adjfklajklf();
		// calreversegugudan();
	}

	private static void adjfklajklf() {
		// TODO Auto-generated method stub
		int i =0;
		while(true){
			System.out.printf("으아아아아아아아");
			if(i==5)break;
			i++;
		}
	}

	private static void calgugudan(int dan) {
		// TODO Auto-generated method stub
		int i = 9;
		System.out.println("------------------"+dan+"----------------------");
		while (i > 0) {
			System.out.printf("ㄱㄱㄱㄱㄱ%2d * %2d = %2d \n", dan, i, dan * i);
			i--;
		}
	}

	private static void calreversegugudan() {
		// TODO Auto-generated method stub
		int i = 9;
		while (i > 0) {
			System.out.printf("rrrrrr%2d * %2d = %2d \n", 2, i, 2 * i);
			i--;
		}
	}

	private static void calgugudan() {
		// TODO Auto-generated method stub
		int dan = 2;
		while (dan < 10) {
			System.out.println(dan);
			int i = 1;
			while (i < 10) {
				System.out.printf("zzzzzz%2d * %2d = %2d \n", dan, i, dan * i);
				i++;
			}
			
			dan++;
			
		}
		
	}
}
